<include file="Public/header" />
<div class="container clearfix">
    <include file="Public/left" />
    <!--/sidebar-->
    <div class="main-wrap">

        <div class="crumb-wrap">
            <div class="crumb-list"><i class="icon-font"></i><a href="__MODULE__">首页</a><span class="crumb-step">&gt;</span><span class="crumb-name">栏目管理</span></div>
        </div>
        <div class="result-wrap">
                <div class="result-title">
                    <div class="result-list">
                        <a href="__CONTROLLER__/add"><i class="icon-font"></i>新增文章</a>
                    </div>
                </div>
                <div class="result-content">
                    <table class="result-tab" width="100%">
                        <tr>
                            <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox"></th>
                            <th width="5%">ID</th>
                            <th>文章标题</th>
                            <th width="10%">所属栏目</th>
                            <th width="10%">缩略图</th>
                            <th width="8%">操作</th>
                        </tr>
                        <foreach name="list" item="list">
                        <tr>
                            <td class="tc"><input name="id[]" value="59" type="checkbox"></td>
                            <td>{$list.id}</td>
                            <td><a target="_blank" href="id={$list.id}" >{$list.title}</a></td>
                            <td><a href="__CONTROLLER__/fid?cateid={$list.cateid}" >{$list.catename}</a></td>
                            <td>
                            <if condition="$list['pic'] neq ''">
                            <img src="__ROOT__/{$list.pic}" width="20" heigt="20"/>
                            <else />
                            	无缩略图
                            </if>
                            </td>
                            <td>
                                <a class="link-update" href="__CONTROLLER__/edit?id={$list.id}">修改</a>
                                <a class="link-del" onclick="return confirm('你请确定要删除栏目？')" href="__CONTROLLER__/del?id={$list.id}">删除</a>
                            </td>
                        </tr> 
                        </foreach>          
                    </table>
                    <div class="list-page">{$page}</div>
                </div>
        </div>
    </div>
    <!--/main-->
</div>
</body>
</html>